package com.hp.service;

import com.hp.pojo.Category;

import java.util.List;

public interface CategoryService {

    //查看一级分类
    List<Category> findList(int parentId);
    List<Category> findAll();

    void add(Category category);

    Category findById(int id);

    void update(Category category);


    void delete(int id);

}
